package com.iworkh.spring.beans.bean.entity;

/**
 * 生命周期
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-18
 */

public class LifeCycleEntity {

    private String attr;


    public LifeCycleEntity() {
        System.out.println("LifeCycleEntity constructor ...");
    }


    public void initMethod() {
        System.out.println("LifeCycleEntity initMethod ...");
    }


    public void destroyMethod() {
        System.out.println("LifeCycleEntity destroyMethod ...");
    }


    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        System.out.println("LifeCycleEntity setAttr method ...");
        this.attr = attr;
    }
}
